/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-06-29 09:48:04
 * @LastEditTime : 2023-08-11 11:12:07
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Router\MenuNav\TwoRouter\GantryCraneCameras.jsx
 * @Description  :
 */

import { API_LIST } from '../../../Api/Api'
import { OpenThrTouter } from '../Common/options'

export const GantryCraneCameras = async ({ OptionsEvent, oneData, Permission, actionRef, ClientData }) => {
    let dataList = {
        hideInSearch: true,
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST([oneData.uuid])['getGantryCraneCameras'],
        options: [
            Permission.findIndex(v => v.uuid === '5eada254-b285-4667-ab13-b7d8689935ce') !== -1 && (
                <OpenThrTouter
                    title="新增摄像头"
                    type="primary"
                    icon="add"
                    modal="SelectModal"
                    OptionsEvent={OptionsEvent}
                    other={{
                        page: 'GantryCraneCameras',
                        actionRef,
                        Permission,
                        twoData: oneData,
                    }}
                />
            ),
        ],
        columns: [{ title: '摄像头名称', dataIndex: 'cameraName', search: false }],
    }
    return dataList
}
